<?php 
defined('IN_IXDCW') or exit('Access Denied');
require DT_CORE.'/'.$module.'/common.inc.php';
$mapAreaid = intval(Area::area2id(Area::ip2area($DT_IP)));
if($AREA[$mapAreaid]['parentid'] != '3421'){
	$shen = $db->getAll("select a.areaname as n ,a.url as id,a.areaid from ".$db->getPre()."area_chaxun as a ,".$db->getPre()."area as b  where b.parentid=".$AREA[$mapAreaid]['parentid']." and a.areaid = b.areaid and a.url!=''" );
	foreach($shen as $k=>$v){
		if($v['areaid'] == $mapAreaid){
			$selAreaid = str_pad(($AREA[$mapAreaid]['parentid']+15).($k+15),8,0,STR_PAD_RIGHT);
		}
	}
}else{
	$selAreaid  = str_pad(($mapAreaid+15).'15',8,0,STR_PAD_RIGHT);
}
include template('antiRules', $module);